<template>
	<div>
		<div>{{sendData}}</div>
		<button @click="editData">click</button>
		<input type="text" v-model="user" @change="setUser">
	</div>
	
	<!-- <div>{{titleList}}</div> -->
</template>

<script>
	export default {
	 
	  data () {
	    return {
	      msg: '主页',
		  user:''
	    }
	  },
	  mounted() {
	  	//this.getData();
	  },
	  methods:{
		  setUser(){
			  this.$emit('transferUser',this.user)
		  },
		  editData(){
			  this.sendData="改变"
		  },
		  alert(){
			  alert("1")
		  },
		  getData(){
			  this.$http.get('http://zeer.yuexunai.com/open/getLineInfoList').then((response)=>{
				console.log(response);
			  },(err)=>{
				// error callback
			  });
		  }
	  },
	  props:['sendData']
	}		
</script>

<style>
</style>
